<?php echo $this->fetch('header.html'); ?>
<div> 
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=koudai_admin&shopid=<?php echo $this->_var['shop']['id']; ?>">店铺账户管理</a></li>
<?php if ($this->_var['shop']): ?><li><a href="<?php echo $this->_var['appadmin']; ?>?m=koudai_admin&a=add&shopid=<?php echo $this->_var['shop']['id']; ?>">添加</a></li><?php endif; ?>
</ul>
<div>当前店铺：<?php echo $this->_var['shop']['title']; ?></div>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   
   <td>所属店铺</td>
   <td>类型</td> 
   <td>管理员</td>
   <td>昵称</td> 
   <td>电话</td>
<td>操作</td>
  </tr>
 <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
   <td><?php echo $this->_var['c']['adminid']; ?></td>
   
   <td><?php echo $this->_var['c']['shopname']; ?></td>
   <td><?php if ($this->_var['c']['typeid'] == 1): ?>管理员<?php else: ?>对账员<?php endif; ?></td> 
   <td><?php echo $this->_var['c']['adminname']; ?></td>
    <td><?php echo $this->_var['c']['nickname']; ?></td>
   <td><?php echo $this->_var['c']['telephone']; ?></td>
   
<td>
<a href="<?php echo $this->_var['appadmin']; ?>?m=koudai_admin&a=add&shopid=<?php echo $this->_var['c']['shopid']; ?>&adminid=<?php echo $this->_var['c']['adminid']; ?>">编辑账户</a>
<a href="<?php echo $this->_var['appadmin']; ?>?m=koudai_admin&a=password&shopid=<?php echo $this->_var['c']['shopid']; ?>&adminid=<?php echo $this->_var['c']['adminid']; ?>">修改密码</a>

 
<a href="<?php echo $this->_var['appadmin']; ?>?m=koudai_admin_area&shopid=<?php echo $this->_var['c']['shopid']; ?>&adminid=<?php echo $this->_var['c']['adminid']; ?>">楼栋授权</a>
 
</td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </table>
<div><?php echo $this->_var['pagelist']; ?></div>
</div> 
<?php echo $this->fetch('footer.html'); ?>